﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CMT;

namespace VIPALABVoiceApp
{
    public class GPSDevice
    {
        IMotionTracker gps_device;
        CMT.MotionTrackerClass gps;
        public GPSDevice()
        {
            initGPS();

            
            
        }

        private void initGPS()
        {
            var port_numbers = new object();
            
            gps = new MotionTrackerClass();
            gps.cmtCreateInstance("b8r6RCoGjQJVsytwUMo8WCRiJiVCCdoL11cCj4HqnaKPHtTn");
            gps.cmtScanPorts(out port_numbers, 115200, 50, 10);

            int number = ((int[])port_numbers).Length;
        }
    }
}
